include_directories( ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/src/common)
SET( COMMON_SRCS
    buddy.cpp
    message.cpp
    status.cpp
)

SET( COMMON_MOC_HDRS
)

  ADD_DEFINITIONS( -Wall )
  
  SET( QT_USE_QTXML FALSE )
  SET( QT_USE_QTNETWORK FALSE )
  SET( QT_DONT_USE_QTGUI TRUE)

  FIND_PACKAGE( Qt4 REQUIRED )
  
  INCLUDE( ${QT_USE_FILE} )
  
  
  QT4_WRAP_CPP( COMMON_MOC_SRCS ${COMMON_MOC_HDRS} )

  ADD_LIBRARY( DichatCommon ${COMMON_SRCS} ${COMMON_MOC_SRCS} )
  TARGET_LINK_LIBRARIES( DichatCommon ${QT_LIBRARIES} )
